<!DOCTYPE html>
<html>
<head>
    <title>印刷机配置表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("quotePrint:quoteprint:save")>
            <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("quotePrint:quoteprint:update")>
            <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("quotePrint:quoteprint:delete")>
            <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">印刷机名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="quotePrint.printName" placeholder="印刷机名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">机器类型</div>
                <div class="col-sm-10">
                    <!--<input type="text" class="form-control input-sm" v-model="quotePrint.printType" placeholder="机器类型(one_kai全开,two_kai对开,four_kai四开,eight_kai八开)"/>-->
                    <select v-model="quotePrint.printType" class="form-control">
                        <option value="one_kai">全开</option>
                        <option value="two_kai">对开</option>
                        <option value="four_kai">四开</option>
                        <option value="eight_kai">八开</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">type</div>
                <div class="col-sm-10">
                    <!--<input type="text" class="form-control input-sm" v-model="quotePrint.machineType" placeholder="type(putong:普通, shangwuyinshua:商务印刷, shumakuaiyin:数码快印, guanggaowuliao:广告物料)"/>-->
                    <select v-model="quotePrint.machineType" class="form-control">
                        <!--<option value="putong">普通</option>-->
                        <option value="shangwuyinshua">商务印刷</option>
                        <option value="shumakuaiyin">数码快印</option>
                        <!--<option value="guanggaowuliao">广告物料</option>-->
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">最小尺寸(长)</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="quotePrint.printMinLength" placeholder="最小尺寸(长)"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">最小尺寸(宽)</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="quotePrint.printMinWide" placeholder="最小尺寸(宽)"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">最大尺寸(长)</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="quotePrint.printMaxLength" placeholder="最大尺寸(长)"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">最大尺寸(宽)</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="quotePrint.printMaxWide" placeholder="最大尺寸(宽)"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">排序</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="quotePrint.printSort" placeholder="排序"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">是否删除</div>
                <div class="col-sm-10">
                    <!--<input type="text" class="form-control input-sm" v-model="quotePrint.delFlag" placeholder="是否删除(1删除,0不删除)"/>-->
                    <!--<select v-model="quotePrint.delFlag" class="form-control">-->
                        <!--<option value="false">不删除</option>-->
                        <!--<option value="true">删除</option>-->
                    <!--</select>-->
                    <el-switch
                            style="display: block"
                            v-model="quotePrint.delFlag"
                            active-color="#87CEFF"
                            inactive-color="#F2F2F2"
                            active-text="删除"
                            inactive-text="不删除">
                    </el-switch>
                </div>
            </div>
            <div class="form-group" v-if="title == '修改'">
                <div class="col-sm-2 control-label">创建时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" readonly="true" v-model="quotePrint.createDate" placeholder="创建时间"/>
                </div>
            </div>
            <div class="form-group" v-if="title == '修改'">
                <div class="col-sm-2 control-label">更新时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" readonly="true" v-model="quotePrint.updateDate" placeholder="更新时间"/>
                </div>
            </div>
            <div class="form-group" v-if="title == '修改'">
                <div class="col-sm-2 control-label">创建人员</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" readonly="true" v-model="quotePrint.createUser" placeholder="创建人员"/>
                </div>
            </div>
            <div class="form-group" v-if="title == '修改'">
                <div class="col-sm-2 control-label">更新人员</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" readonly="true" v-model="quotePrint.updateUser" placeholder="更新人员"/>
                </div>
            </div>
            <div class="form-group">
            <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary  btn-sm" @click="saveOrUpdate" value="确定"/>&nbsp;&nbsp;
                <input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/quotePrint/quoteprint.js?_${.now?long}"></script>
</body>
</html>